import request from '@/utils/request'

export function queryLandlordInfo(params) {
  return request({
    url: '/landlords',
    method: 'get',
    params: params
  })
}
//新增信息
export function submitForm(data) {
  return request({
    url: '/add',
    method: 'post',
    data
  })
}
//修改信息
export function updateForm(formData) {
  return request({
    url: '/update',
    method: 'post',
    data: formData
  })
}
//删除信息
export function deleteForm(id) {
  return request({
    url: '/delete',
    method: 'get',
    params:{id:id}
  })
}
//批量删除信息
export function batchDeleteForm(ids) {
  return request({
    url: '/deletes',
    method: 'post',
    data: ids
  })
}
